<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<title></title>
<meta name="description" content="overview & stats" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/bootstrap-responsive.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/static/css/font-awesome.min.css" />
<link rel="stylesheet" href="/static/css/ace.min.css" />
<link rel="stylesheet" href="/static/css/ace-responsive.min.css" />
<link rel="stylesheet" href="/static/css/ace-skins.min.css" />
<script type="text/javascript" src="/static/js/jquery-1.7.2.js"></script>	
	
</head>
<body style="background: #FFF;">
	<div id="zhongxin"></div>
	
	<div class="err-info">
			
	
	</div>
	
	<script type="text/javascript">
		var msg = "${msg}";
		if(msg=="success" || msg==""){
			document.getElementById('zhongxin').style.display = 'none';
			top.Dialog.close();
		}else if(msg=="fh_error" ){
			document.getElementById('zhongxin').style.display = 'none';
			var err = '${err_list}';
			if(err!=''){
				var _data = JSON.parse(err);
				var _html = "";
				for(var i=0;i<_data.length;i++){
					_html += "<div class=\"row-fluid\" style=\"text-align: center;padding-top: 20px;\">\n" +
					"	商品："+_data[i].goods_name+" ，库存不足\n" +
					"</div>";
				}
				_html += "<a href=\"javascript:history.back(-1)\">返 回</a>" ;
				$(".err-info").html(_html);
			}else{
				var _html = "<div class=\"row-fluid\" style=\"text-align: center;padding-top: 20px;\">\n" +
				"	商品不能为空\n" +
				"</div>";
				_html += "<a href=\"javascript:history.back(-1)\">返 回</a>" ;
				$(".err-info").html(_html);
			}
		}else{
			top.Dialog.close();
		}
	</script>
</body>

</html>